package com.sean.findme.near;

import java.util.HashMap;

import android.app.ActivityGroup;
import android.content.Context;

import com.sean.findme.FmActivityInfo;
import com.sean.findme.FmActivityManager;
import com.sean.findme.R;

public class NearActivityManager extends FmActivityManager{

	private static NearActivityManager instance = null;
	private Context mContext = null;
	
	public NearActivityManager(Context mContext) {
		super(mContext);
		instance = this;
	}
	
	public static NearActivityManager getInstance()
	{
		if( instance == null )
			instance = new NearActivityManager(null);
		
		return instance;
	}

	@Override
	public void configFirstActivity( Context mContext ) {
	
		HashMap<String,String> map = new HashMap<String,String>();
		map.put("title", mContext.getResources().getString(R.string.near_title));
		map.put("key", "all");
		map.put("type", "1");
		
		FmActivityInfo info = new FmActivityInfo(NearActivity.class, (ActivityGroup)mContext, map);
		this.getListActivityInfo().push(info);
		super.configFirstActivity(mContext);
	}
	
	
	
	

}
